Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep reference to DomainParticipantFactory #770

Open
wants to merge 2 commits into
base: rolling
Choose a base branch
from

Conversation

MiguelCompany
Copy link
Collaborator

@MiguelCompany MiguelCompany commented Jun 12, 2024

We've seen several issues related with destruction order lately.

This PR aims to mitigate them by leveraging Fast DDS DomainParticipantFactory::get_shared_instance().

It should then avoid the automatic destruction of the factory (and the participants it created) until all the contexts in the process have been destroyed.

This can be backported to Jazzy and Iron, but not Humble, since get_shared_instance() is only available from Fast DDS 2.8.0 onwards.

Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MiguelCompany thanks for the explanation, lgtm with green CI.

@ahcorde
Copy link
Contributor

ahcorde commented Jun 21, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
@MiguelCompany MiguelCompany force-pushed the hotfix/keep-factory-shared-ptr branch from 73f7936 to 94cffad Compare July 10, 2024 08:05
@MiguelCompany
Copy link
Collaborator Author

@fujitatomoya @ahcorde I rebased this one to get the changes from #763 (I think the test failures were due to that)

@fujitatomoya
Copy link
Collaborator

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants